package com.quanyan.club.mq.producer;

import com.quanyan.club.mq.constant.MqConstant;
import com.quanyan.mq.mq.producer.AbstractMqProducer;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * Created by zhuo.shi on 2016/11/15.
 * 批量发送鸟蛋
 */
@Component
public class BatchGiveOutEggsProducer extends AbstractMqProducer {

    @Value("${mq.nameServer.address}")
    private String nameServerAddress;

    @Override
    protected String getProducerGroup() {
        return MqConstant.ASSETS_GROUP_CLUB_ADD_EGG;
    }

    @Override
    protected String getNameServerAddress() {
        return this.nameServerAddress;
    }

    @Override
    protected String getInstanceName() {
        return MqConstant.ASSETS_INSTANCE_CLUB_ADD_EGG;
    }

//    @PostConstruct
//    void run() {
//        super.start();
//    }
}
